package com.uyaer.card.vo.soilder
{
	internal class SoilderSampleVo
	{
		private var _type:String;
		private var _attack:int;
		private var _defens:int;
		private var _hp:int;
		private var _speed:int;
		private var _rang:int;
		private var _attackDelay:int;
		private var _attackGrow:int;
		private var _defensGrow:int;
		private var _hpGrow:int;
		private var _speedGrow:int;
		private var _cd:int;
		public function SoilderSampleVo()
		{
		}
		
		/**
		 *从配置文件中读取数据填充到Vo
		 * @param data
		 * 
		 */		
		public function fillVoFromCfg(data:Object):void{
			this._type = data.type;
			this._attack = data.attack;
			this._defens = data.defens;
			this._hp = data.hp;
			this._speed = data.speed;
			this._rang = data.rang;
			this._attackDelay = data.attackDelay;
			this._attackGrow = data.attackGrow;
			this._defensGrow = data.defensGrow;
			this._hpGrow = data.hpGrow;
			this._speedGrow = data.speedGrow;
		}

		/**
		 *类型 
		 */
		public function get type():String{
			return _type;
		}

		/**
		 *攻击 
		 */
		public function get attack():int{
			return _attack;
		}

		/**
		 *防御 
		 */
		public function get defens():int{
			return _defens;
		}

		/**
		 *生命 
		 */
		public function get hp():int{
			return _hp;
		}

		/**
		 *行走速度 
		 */
		public function get speed():int{
			return _speed;
		}

		/**
		 *最大攻击步数 
		 */
		public function get rang():int{
			return _rang;
		}

		/**
		 *攻击间隔 (毫秒数)
		 */
		public function get attackDelay():int{
			return _attackDelay;
		}

		/**
		 *每级攻击增长 
		 */
		public function get attackGrow():int{
			return _attackGrow;
		}

		/**
		 *每级防御增长 
		 */
		public function get defensGrow():int{
			return _defensGrow;
		}

		/**
		 *每级生命增长 
		 */
		public function get hpGrow():int{
			return _hpGrow;
		}

		/**
		 *每级速度增长 
		 */
		public function get speedGrow():int{
			return _speedGrow;
		}

		/**
		 *冷却时间 毫秒数 
		 */
		public function get cd():int{
			return _cd;
		}


	}
}